import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    login: false,  
    token: '',  
    userInfo:{},
  },
  mutations: {
    resetState(state) {
      state.login = false;
      state.token = '';
      state.userInfo = {};
    },
  },
  actions: {
  },
  modules: {
  }
})
